package com.DateDemo;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;


/**
 * @Author milian
 * @Date 2021/7/22 0022 19:29
 */
public class test02 {
    public static void main(String[] args) {
        String str = "2019年2月14日";
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy年M月dd日");
        LocalDate dateTime = LocalDate.parse(str, dtf);
        System.out.println(dateTime.getDayOfWeek().getValue());

    }
}

